package com.frxuexi.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.ShopBeanItem
import com.frxuexi.lib_base.http.GlideUtil
import com.frxuexi.shop.R

class ShopAdapter:BaseQuickAdapter<ShopBeanItem,BaseViewHolder>(R.layout.item_shop) {
    override fun convert(helper: BaseViewHolder, item: ShopBeanItem) {
        GlideUtil.getRoundImg(item.image,helper.getView(R.id.shop_iv))
        helper.setText(R.id.shop_title,item.storeName)
        helper.setText(R.id.shop_price,item.price.toString())

    }
}